package com.expand02;

/**
 * Created by yangjun on 2018/3/23.
 */
public class NvWa {
    public static void main(String[] args) {
        System.out.println("--造出第一批人种是白色人种--");
        Human whiteHuman = (new WhiteHumanFactory()).createHuman();
        whiteHuman.getColor();
        whiteHuman.talk();
        System.out.println("--造出第二批人种是黑色人种--");
        Human blackHuman = (new BlackHumanFactory()).createHuman();
        blackHuman.getColor();
        blackHuman.talk();
        System.out.println("--造出第三批人种是黄色人种--");
        Human yellowHuman = (new YellowHumanFactory()).createHuman();
        yellowHuman.getColor();
        yellowHuman.talk();
    }
}
